package one.stand.fallback;

import com.jmp.base.dto.ArticlePositionSaveRequest;
import com.jmp.base.dto.ArticleSaveRequest;
import com.jmp.base.dto.ArticleStatusSaveRequest;
import com.jmp.feign.ArticleFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

/**
 * @author hujun
 */
@Component
public class ArticleFallback implements ArticleFeign {

    @Override
    public ResultModel articleSave(ArticleSaveRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel articleStatusSave(ArticleStatusSaveRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel articlePositionSave(ArticlePositionSaveRequest request) {
        return ResultModel.faultTolerant();
    }


}
